@import './common.less';

.no-permission-invoice {
  .full-screen();
  background: #f5f4f9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  .icon {
    margin-top: -200/@ppr;
    width: 203/@ppr;
    height: auto;
    margin-bottom: 50/@ppr;
  }

  .title {
    margin: 0;
    padding: 0;
    line-height: 44/@ppr;
    font-size: 30/@ppr;
    max-width: 60%;
    color: #999999;
    text-align: center;
  }
}

.invoice-base {
  .full-screen();
  background: @bg-color;
  .header {
    height: 90/@ppr;
    background: white;
    padding: 0 30/@ppr;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 28/@ppr;
    color: rgb(46, 46, 54);
  }
  .invoice-order-list {
    top: 112/@ppr;
    .list-empty {
      margin: 0;
      .icon {
        margin-top: -56/@ppr;
      }
      .full-screen();
    }
    .list {
      position: relative;
      .cell-group {
        .group-body {
          .cell-wrapper {
            padding-left: 30/@ppr;
            margin-bottom: 20/@ppr;
            background: white;
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            align-items: center;

            .icon-checked {
              font-size: 38/@ppr;
              color: rgb(255, 102, 85);
            }

            .icon-unchecked {
              font-size: 38/@ppr;
              color: rgb(217, 217, 217);
            }

            .refuel-cell {
              flex: 1;
              margin-bottom: 0;

              .cell-row {
                justify-content: flex-start;
              }
            }
          }
        }
      }
    }
  }
  .invoice-btn {
    position: absolute;
    bottom: 30/@ppr;
    left: 30/@ppr;
    right: 30/@ppr;
    height: 90/@ppr;
    font-size: 30/@ppr;
    font-weight: normal;
    z-index: 9;
    &.btn-disabled {
      background: rgb(227, 227, 227);
      color: rgb(153, 153, 153);
      opacity: 1;
    }
  }
  .content {
    .scrollable();
    .full-screen();
    padding-bottom: 100/@ppr;
    top: 112/@ppr;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    .info-view {
      p {
        margin: 0 0 17/@ppr 0;
        padding: 0;
        &:last-child {
          margin-bottom: 0;
        }
      }
      padding: 30/@ppr;
      font-size: 24/@ppr;
      color: #cd8454;
      line-height: 34/@ppr;
    }
    .content-row {
      position: relative;
      height: 100/@ppr;
      min-height: 100/@ppr;
      padding: 0 30/@ppr;
      background: white;
      color: rgb(46, 46, 54);
      font-size: 30/@ppr;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      &.top {
        margin-top: 20/@ppr;
      }
      .money {
        margin-left: 40/@ppr;
        flex: 1;
        color: #ff6655;
        font-size: 32/@ppr;
        .unit {
          font-size: 24/@ppr;
          color: #999999;
          margin-left: 20/@ppr;
        }
      }
      .back-btn {
        font-size: 24/@ppr;
        padding: 18/@ppr 20/@ppr;
        text-align: center;
        border-radius: 4/@ppr;
        border: 1px solid #999999;
      }
      .icon-arrow {
        font-size: 16/@ppr;
        color: #c4c4c4;
        margin-left: 20/@ppr;
        margin-right: -10/@ppr;
      }
      .text {
        flex: 1;
        font-size: 28/@ppr;
        text-align: right;
        &.placeholder {
          color: #d2d3d8;
        }
      }
      input {
        flex: 1;
        text-align: right;
        height: 100%;
        line-height: 100/@ppr;
        font-size: 28/@ppr;
        .place-holder(#d2d3d8);
      }
    }
  }
}

.invoice-info {
  .full-screen();
  background: @bg-color;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  .header {
    height: 90/@ppr;
    background: white;
    padding: 0 30/@ppr;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 28/@ppr;
    color: rgb(46, 46, 54);
  }
  .add-view {
    height: 100/@ppr;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    .icon {
      width: 32/@ppr;
      height: auto;
      margin-right: 20/@ppr;
    }
    color: #cd8454;
    font-size: 32/@ppr;
  }
  .list {
    flex: 1;
    .scrollable();
    .info-cell {
      background: white;
      margin-bottom: 20/@ppr;
      padding-left: 30/@ppr;
      height: 160/@ppr;
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      .cell-body {
        flex: 1;
        .title {
          font-size: 32/@ppr;
          color: #2e2e36;
        }
        .text {
          font-size: 28/@ppr;
          color: #999999;
          margin-top: 20/@ppr;
        }
      }
      .icon {
        padding: 30/@ppr;
        width: 40/@ppr;
        height: auto;
      }
    }
  }
}

.edit-invoice-info {
  .full-screen();
  background: @bg-color;
  .scrollable();

  .content-row {
    &.header {
      height: 90/@ppr;
      padding: 0 30/@ppr;
      font-size: 28/@ppr;
    }
    // height: 100/@ppr;
    background: white;
    padding: 36/@ppr 30/@ppr;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 30/@ppr;
    color: #2e2e36;
    &.top {
      margin-top: 20/@ppr;
    }
    .icon-arrow {
      font-size: 16/@ppr;
      color: #c4c4c4;
      margin-left: 20/@ppr;
      margin-right: -10/@ppr;
    }

    .text {
      flex: 1;
      font-size: 28/@ppr;
      text-align: right;

      &.placeholder {
        color: #d2d3d8;
      }
    }

    input, textarea {
      width: 200/@ppr;
      flex: 1;
      margin-left: 20/@ppr;
      text-align: right;
      // height: 100%;
      line-height: 32/@ppr;
      font-size: 28/@ppr;
      .place-holder(#d2d3d8);
    }
  }

  .save-btn, .del-btn {
    z-index: 9;
    height: 90/@ppr;
    font-size: 30/@ppr;
    font-weight: normal;
    position: absolute;
    bottom: 30/@ppr;
    left: 30/@ppr;
    right: 30/@ppr;
    &.btn-disabled {
      background: rgb(227, 227, 227);
      color: rgb(153, 153, 153);
      opacity: 1;
    }
  }

  .del-btn {
    bottom: 140/@ppr;
    border: 1px solid #d8d8d8;
    background: white;
    color: #999999;
  }
}

.invoice-list-base {
  .full-screen();
  background: @bg-color;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  .list-empty {
    .full-screen();
    margin: 0;
    .icon {
      margin-top: -80/@ppr;
    }
  }
  .header {
    height: 80/@ppr;
    background: white;
    padding: 0 30/@ppr;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: #2e2e36;
    font-size: 24/@ppr;
    .invoice-btn {
      font-size: 26/@ppr;
      color: #ff6655;
      padding: 7/@ppr 10/@ppr;
      border: 1px solid #ff6655;
      border-radius: 4/@ppr;
    }
  }
  .filter-view {
    height: 80/@ppr;
    padding: 0 30/@ppr;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    color: #2e2e36;
    font-size: 28/@ppr;
    .icon-trangle {
      font-size: 18/@ppr;
      color: #999999;
      margin-left: 6/@ppr;
    }
  }
  .list {
    position: relative;
    flex: 1;
    .scrollable();
    .invoice-cell {
      margin-bottom: 20/@ppr;
      background: white;
      padding: 0 30/@ppr;
      .cell-header {
        .hairline(bottom, #e0e0e0);
        height: 80/@ppr;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        color: #2e2e36;
        font-size: 28/@ppr;
        .status {
          color: #b43927;
          &.status-1, &.status-0 {
            color: #cb7e2b;
          }
          &.status-3 {
            color: 64ae3b;
          }
        }
      }
      .cell-body {
        padding: 20/@ppr 0;
        .hairline(bottom, #e0e0e0);
        .content-row {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          align-items: center;
          color: #999999;
          font-size: 28/@ppr;
          margin-bottom: 30/@ppr;
          &:last-child {
            margin-bottom: 0;
          }
          .value {
            color: #2e2e36;
          }
        }
      }
      .btn-view {
        height: 98/@ppr;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        .action-btn {
          color: #2e2e36;
          font-size: 24/@ppr;
          padding: 9/@ppr 10/@ppr;
          border-radius: 4/@ppr;
          border: 1px solid #999999;
          margin-left: 20/@ppr;
        }
      }
    }
  }
}

.send-email-base {
  .full-screen();
  background: @bg-color;
  .content-row {
    position: relative;
    height: 100/@ppr;
    min-height: 100/@ppr;
    padding: 0 30/@ppr;
    background: white;
    color: rgb(46, 46, 54);
    font-size: 32/@ppr;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    input {
      flex: 1;
      text-align: right;
      height: 100%;
      line-height: 100/@ppr;
      font-size: 28/@ppr;
      .place-holder(#d2d3d8);
    }
  }
  .send-btn {
    font-size: 32/@ppr;
    position: fixed;
    left: 30/@ppr;
    right: 30/@ppr;
    bottom: 68/@ppr;
    &.btn-disabled {
      background: rgb(227, 227, 227);
      color: rgb(153, 153, 153);
      opacity: 1;
    }
  }
}

.invoice-preview {
  .full-screen();
  background: @bg-color;
  .pdf {
    width: 100%;
    // height: 50%;
  }
  .save-btn {
    height: 96/@ppr;
    display: block;
    line-height: 96/@ppr;
    text-align: center;
    margin: 80/@ppr 20/@ppr;
    border-radius: 48/@ppr;
    color: white;
    font-weight: bold;
    font-size: 32/@ppr;
    .directional-gradient(#fd5251, #fe8b47);
  }
}
